﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FiguresListDraw
{
    class Worker
    {
        internal static List<Figure> InitializationList()
        {
            List<Figure> list = new List<Figure>()
            {
                new RightTriangle(5, true, 40),
                new RightTriangle(3, false, 30),
                new RightTriangle(3, true, 0),
                new RightTriangle(7),                
                new Square(5, true, 10),
                new Square(13, false, 4),
                new Square(9),
                new Rectangle(13, 7, false, 25),
                new Rectangle(16, 4, true, 16),
                new Rectangle(9, 15),
            };

            return list;
        }

        internal static void DrawList(List<Figure> figures)
        {
            foreach (Figure item in figures)
            {
                item.Draw();
                Console.WriteLine();
            }
        }
    }
}
